package com.goldfish666.remote_control.exception;

import com.goldfish666.remote_control.enums.ResultCodeEnum;
import lombok.Data;

@Data
public class BizException extends BaseException {

    private ResultCodeEnum code;

    public BizException() {
        this("业务错误");
    }

    public BizException(String message) {
        this(message, ResultCodeEnum.Error);
    }

    public BizException(String message, ResultCodeEnum code) {
        super(message);
        this.code = code;
    }

}
